package com.wangyang.stock.po;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Invoice entity. @author MyEclipse Persistence Tools
 */

public class Invoice implements java.io.Serializable {

	// Fields

	private Integer invoiceId;
	private Employee employee;
	private InvoiceType invoiceType;
	private Storehouse storehouse;
	private InOut inOut;
	private Operator operator;
	private String invoiceCid;
	private Date invoiceDate;
	private Integer invoiceAmount;
	private Float invoiceTotal;
	private String invoiceMemo;
	private Set merInvs = new HashSet(0);

	// Constructors

	/** default constructor */
	public Invoice() {
	}

	/** full constructor */
	public Invoice(Employee employee, InvoiceType invoiceType,
			Storehouse storehouse, InOut inOut, Operator operator,
			String invoiceCid, Date invoiceDate, Integer invoiceAmount,
			Float invoiceTotal, String invoiceMemo, Set merInvs) {
		this.employee = employee;
		this.invoiceType = invoiceType;
		this.storehouse = storehouse;
		this.inOut = inOut;
		this.operator = operator;
		this.invoiceCid = invoiceCid;
		this.invoiceDate = invoiceDate;
		this.invoiceAmount = invoiceAmount;
		this.invoiceTotal = invoiceTotal;
		this.invoiceMemo = invoiceMemo;
		this.merInvs = merInvs;
	}

	// Property accessors

	public Integer getInvoiceId() {
		return this.invoiceId;
	}

	public void setInvoiceId(Integer invoiceId) {
		this.invoiceId = invoiceId;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public InvoiceType getInvoiceType() {
		return this.invoiceType;
	}

	public void setInvoiceType(InvoiceType invoiceType) {
		this.invoiceType = invoiceType;
	}

	public Storehouse getStorehouse() {
		return this.storehouse;
	}

	public void setStorehouse(Storehouse storehouse) {
		this.storehouse = storehouse;
	}

	public InOut getInOut() {
		return this.inOut;
	}

	public void setInOut(InOut inOut) {
		this.inOut = inOut;
	}

	public Operator getOperator() {
		return this.operator;
	}

	public void setOperator(Operator operator) {
		this.operator = operator;
	}

	public String getInvoiceCid() {
		return this.invoiceCid;
	}

	public void setInvoiceCid(String invoiceCid) {
		this.invoiceCid = invoiceCid;
	}

	public Date getInvoiceDate() {
		return this.invoiceDate;
	}

	public void setInvoiceDate(Date invoiceDate) {
		this.invoiceDate = invoiceDate;
	}

	public Integer getInvoiceAmount() {
		return this.invoiceAmount;
	}

	public void setInvoiceAmount(Integer invoiceAmount) {
		this.invoiceAmount = invoiceAmount;
	}

	public Float getInvoiceTotal() {
		return this.invoiceTotal;
	}

	public void setInvoiceTotal(Float invoiceTotal) {
		this.invoiceTotal = invoiceTotal;
	}

	public String getInvoiceMemo() {
		return this.invoiceMemo;
	}

	public void setInvoiceMemo(String invoiceMemo) {
		this.invoiceMemo = invoiceMemo;
	}

	public Set getMerInvs() {
		return this.merInvs;
	}

	public void setMerInvs(Set merInvs) {
		this.merInvs = merInvs;
	}

}